#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

// This test checks the Great Hall Card (card enum 16)

int main()
{
	int k[10] = {great_hall, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy};
	struct gameState G;
	int randomSeed;
	int m;
	int numPlayer = 2;
	
	srand(time(NULL));
	randomSeed = (rand() % 10)+1;

	m = initializeGame(numPlayer, k, randomSeed, &G);
	
	G.handCount[0] = 1;
	G.hand[0][0] = 16;
	G.numActions = 1;
	
	printf("Testing the Great Hall card.\n");
	playCard(0, 0, 0, 0, &G);
	

	if(G.handCount[0] == 1)
		printf("Card drawn. PASSED.\n");
	else
		printf("Card not drawn. FAILED.\n");
	if(G.numActions == 1)
		printf("Action gained. PASSED.\n");
	else
		printf("Action not gained. FAILED.\n");
	// a
return 0;
}